from fastapi import FastAPI
from api.api_sys import router as api_sys
import uvicorn
app = FastAPI()

# 添加前缀，例如
app.include_router(api_sys, prefix="/api")


@app.get("/")
async def root():
    return {"message": "success,欢迎使用mxxWechatBot,进群请添加:mxx2451999120"}

# 测试接口
@app.get("/test_api")
def test_api():
    return "success,欢迎使用mxxWechatBot,进群请添加:mxx2451999120"


# 启动文件
if __name__ == "__main__":
    uvicorn.run("main:app", host="127.0.0.1", port=7582)
